﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt
{
	// Token: 0x02000085 RID: 133
	public class TAlterUserStmt : TCustomSqlStatement
	{
		// Token: 0x0600034E RID: 846 RVA: 0x002F9B75 File Offset: 0x002F7D75
		public void setUserName(TObjectName userName)
		{
			this.userName = userName;
		}

		// Token: 0x0600034F RID: 847 RVA: 0x002F9B7E File Offset: 0x002F7D7E
		public TObjectName getUserName()
		{
			return this.userName;
		}

		// Token: 0x06000350 RID: 848 RVA: 0x002F9B86 File Offset: 0x002F7D86
		public TAlterUserStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstalteruser;
		}

		// Token: 0x06000351 RID: 849 RVA: 0x002F9B9C File Offset: 0x002F7D9C
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.userName = (TObjectName)tdummy.node1;
			return 0;
		}

		// Token: 0x06000352 RID: 850 RVA: 0x002F9BD9 File Offset: 0x002F7DD9
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000353 RID: 851 RVA: 0x002F9BE9 File Offset: 0x002F7DE9
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x040010A5 RID: 4261
		private TObjectName userName;
	}
}
